<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	template="adminTemplate.xhtml">

	<ui:define name="pageIntro">
		<h2>Create Role</h2>
		<p class="lftText">Use this form to create a <span>role</span>.<br />
		<span>Role</span>s are needed for some actions (an example to action
		is "Opening of a bug", "Resolving a bug"). You do not have to restrict
		all the actions but for example you may not a developer to perform a
		tester's action. System defined roles that can not be deleted are: <span>admin</span>,<span>everyone</span>.
		Probably you will enter such roles: developer,tester,customer etc.</p>
	</ui:define>

	<ui:define name="mainForm">
		<h:form id="crtRoleForm">
			<h:panelGrid columns="2">

				<h:outputLabel for="crtRoleName" value="Name"></h:outputLabel>
				<h:inputText id="crtRoleName" value="#{createRole.role.name}"></h:inputText>

				<h:outputLabel for="crtRoleDescription" value="Description"></h:outputLabel>
				<h:inputText id="crtRoleDescription"
					value="#{createRole.role.description}"></h:inputText>

			</h:panelGrid>
			<h:commandButton value="Save" id="crtRoleSbt"
				action="#{createRole.save}"></h:commandButton>
		</h:form>
	</ui:define>
</ui:composition>
